package bsql

import (
	"context"
	"database/sql"
	_ "github.com/go-sql-driver/mysql"
)

type DbOrTx interface {
	Query(data interface{},query string,args ...interface{})error
	QueryT(ctx context.Context,data interface{},query string,args ...interface{})error
	Exec(query string,args ...interface{})(*Result,error)
	ExecT(ctx context.Context,query string,args ...interface{})(*Result,error)
}

type Result struct {
	sql.Result
}

type Options struct {
	sql.TxOptions
}